//
//  FirstViewController.m
//  usePrivateApi
//
//  Created by 赵 凯 on 13-5-17.
//  Copyright (c) 2013年 kk. All rights reserved.
//

#import "FirstViewController.h"
#import "AADeviceInfo.h"


@interface FirstViewController ()

@end

@implementation FirstViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = NSLocalizedString(@"First", @"First");
        self.tabBarItem.image = [UIImage imageNamed:@"first"];
    }
    return self;
}
							
- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)testPrivateAPI:(id)sender {
    NSLog(@"测试Private api");
/*
    NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/AppleAccount.framework"];
    BOOL sucess = [b load];
    Class AADeviceInfo = NSClassFromString(@"AADeviceInfo");
    NSLog(@"-- serialNumber: %@", [AADeviceInfo serialNumber]);
    NSLog(@"-- udid: %@", [AADeviceInfo udid]);
    NSLog(@"-- appleIDClientIdentifier: %@", [AADeviceInfo appleIDClientIdentifier]);
    
    id deviceInfo = [[AADeviceInfo alloc] init];
    NSLog(@"-- wifiMacAddress: %@", [deviceInfo wifiMacAddress]);
 */
    NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/Frameworks/CoreTelephony.framework"];
    BOOL sucess = [b load];

    
}
@end
